package com.hrcx.mystery.pojo;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 回收记录
 *
 * @author LinXiPeng
 * @TableName eb_mystery_recycle_record
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "回收记录", description = "暂无描述")
@AllArgsConstructor
@NoArgsConstructor
public class EbMysteryRecycleRecord implements Serializable {

    private static final long serialVersionUID = -2608026672372153745L;

    public EbMysteryRecycleRecord(@NotNull(message = "[用户编号]不能为空") Integer uid,
                                  @NotNull(message = "[商品编号]不能为空") Integer pid,
                                  @NotNull(message = "[盒子编号]不能为空") Integer bid,
                                  @NotNull(message = "[是否使用了回收卡]不能为空") Boolean userecovery,
                                  @NotNull(message = "[回收价格]不能为空") BigDecimal price) {
        this.uid = uid;
        this.pid = pid;
        this.bid = bid;
        this.userecovery = userecovery;
        this.price = price;
    }

    /**
     * 回收编号
     */
    @NotNull(message = "[回收编号]不能为空")
    @ApiModelProperty("回收编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户编号
     */
    @NotNull(message = "[用户编号]不能为空")
    @ApiModelProperty("用户编号")
    private Integer uid;
    /**
     * 商品编号
     */
    @NotNull(message = "[商品编号]不能为空")
    @ApiModelProperty("商品编号")
    private Integer pid;
    /**
     * 盒子编号
     */
    @NotNull(message = "[盒子编号]不能为空")
    @ApiModelProperty("盒子编号")
    private Integer bid;
    /**
     * 是否使用了回收卡
     */
    @NotNull(message = "[是否使用了回收卡]不能为空")
    @ApiModelProperty("是否使用了回收卡")
    private Boolean userecovery;
    /**
     * 回收价格
     */
    @NotNull(message = "[回收价格]不能为空")
    @ApiModelProperty("回收价格")
    private BigDecimal price;
}
